home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
nt
/
source.exe
/
POSIX
/
SH
/
STD
/
STDC
/
STRNCAT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-13
|
427b
|
25 lines
#include <string.h>
/*
* strncat - append at most n characters of string src to dst
*/
char * /* dst */
strncat(dst, src, n)
char *dst;
Const char *src;
size_t n;
{
register char *dscan;
register Const char *sscan;
register size_t count;
for (dscan = dst; *dscan != '\0'; dscan++)
continue;
sscan = src;
count = n;
while (*sscan != '\0' && --count >= 0)
*dscan++ = *sscan++;
*dscan++ = '\0';
return(dst);
}